package br.com.rhinoadmin.webservice.contract;

public class ConexaoWSContractProxy implements br.com.rhinoadmin.webservice.contract.ConexaoWSContract {
  private String _endpoint = null;
  private br.com.rhinoadmin.webservice.contract.ConexaoWSContract conexaoWSContract = null;
  
  public ConexaoWSContractProxy() {
    _initConexaoWSContractProxy();
  }
  
  public ConexaoWSContractProxy(String endpoint) {
    _endpoint = endpoint;
    _initConexaoWSContractProxy();
  }
  
  private void _initConexaoWSContractProxy() {
    try {
      conexaoWSContract = (new br.com.rhinoadmin.webservice.impl.ConexaoWSLocator()).getconexaoWSPort();
      if (conexaoWSContract != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)conexaoWSContract)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)conexaoWSContract)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (conexaoWSContract != null)
      ((javax.xml.rpc.Stub)conexaoWSContract)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public br.com.rhinoadmin.webservice.contract.ConexaoWSContract getConexaoWSContract() {
    if (conexaoWSContract == null)
      _initConexaoWSContractProxy();
    return conexaoWSContract;
  }
  
  public br.com.rhinoadmin.webservice.contract.Usuario realizarLogin(java.lang.String arg0, java.lang.String arg1) throws java.rmi.RemoteException{
    if (conexaoWSContract == null)
      _initConexaoWSContractProxy();
    return conexaoWSContract.realizarLogin(arg0, arg1);
  }
  
  
}